import AuthorizedButton from '@/components/AuthorizedButton';
import { Button, DatePicker } from 'antd';
import moment from 'moment';
import React from 'react';

export default function PageExtra(props) {
  return (
    <>
      截止年月：
      <DatePicker.MonthPicker
        allowClear={false}
        // onChange={this.handleDeadline}
        // value={moment(endTime)}
        format="YYYY-MM"
        disabledDate={current => current && current > moment().endOf('day')}
      />
      <AuthorizedButton authority="RemovalRateForm_Export">
        <Button
          // disabled={items.length <= 0}
          className="yellow-button"
          // target="_blank"
          // href={`${process.env.apiUrl}/api/v1/report/removalReportExport?${exportQueryString}`}
        >
          导出报表
        </Button>
      </AuthorizedButton>
    </>
  );
}
